<?php
/*
Plugin Name: Demo Plugin
Description: The first plugin
Author: Dxnguyen
Author URI: dxnguyen.com
Plugin URI:dxnguyen.com/plugins
Version: 1.0
*/

global $wp_version;
if(version_compare($wp_version,'3.0','<') ){
	exit('This plugin require Wordpress version 3.0 or higher. Please upgrade now.');
}

function is_bad_words_filter($content){
	$bad_words = array('shit','fuck','damn');
	return str_ireplace($bad_words, '[Note]',$content);
}
add_filter('the_content','is_bad_words_filter');
//add_filter('the_title',strtolower);
